#pragma once
#include <Windows.h>
#ifndef CheckRegister_h__
#define CheckRegister_h__

#define CHECK_REGISTER() \
{\
    SYSTEMTIME st;\
    ::GetLocalTime(&st);\
    if (st.wYear > 2016 || st.wYear == 2016 && st.wDay > 1 && st.wMonth > 1)\
    {\
        ::ExitProcess(0);\
        throw 1;\
    }\
}

#endif // CheckRegister_h__